{% extends 'base.html' %}
{% load staticfiles %}
{% block title %}
首页
{% endblock %}
{% block content %}

<div class="am-container">

    <div class="am-u-sm-8">
        <div class="am-panel am-panel-default" style="padding: 10px 10px;">
            <img src="{% static 'home.png' %}" alt="" height="100%" width="100%">
        </div>
    </div>
    <div class="am-u-sm-4">
        <div class="am-panel am-panel-default" style="padding: 10px 10px;">
            {% if request.session.is_login %}
            <h1 style="color: {{ request.session.color }};text-align: center;">
                {{ request.session.username }}
            </h1>
            <hr>
            <h1 style="text-align: center;">
                测试时间延长，欢迎吐槽qwq
            </h1>
            {% else %}
            <a href="{% url 'register' %}"><button type="button" class="am-btn am-btn-default am-radius">注册</button></a>
            <a href="{% url 'login' %}"><button type="button" class="am-btn am-btn-primary am-fr am-radius">登录</button></a>
            {% endif %}
        </div>
    </div>

</div>
{% endblock %}